package com.pubinfo.passbook.common.model.http.baseEntity.request;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@JacksonXmlRootElement(localName = "requestMessage")
public class MessageList<T> implements Serializable {
  private static final long serialVersionUID = -4263564369107973676L;
  @JacksonXmlElementWrapper(localName = "items")
  @JacksonXmlProperty(localName = "item")
  private List<T> item;
  
  public MessageList() {
  }
  
  public MessageList(List<T> item) {
    this.item = item;
  }
}
